<template>
  <div class="index">
    <Row type="flex" justify="center" align="middle">
      <Col span="4">
      </Col>
      <Col span="16">
        <h2>
          <p>Idea编辑</p>
        </h2>
      </Col>
      <Col span="4">
      </Col>
    </Row>
  </div>
</template>
<script>
export default {
  created: () => {
  },
  data () {
    return {
      name: 'peter'
    }
  },
  mounted () {
    console.log(this.axios)
    this.getAjax()
  },
  // components: {},
  methods: {
    handleStart () {
      this.$Modal.info({
        title: 'Bravo',
        content: 'Now, enjoy the convenience of iView.'
      })
    },
    getAjax () {
      this.axios({
        method: 'get',
        url: '/idea'
      }).then(function (resp) {
        console.log(resp.data)
      }).catch(resp => {
        console.log('请求失败: ' + resp.status + ', ' + resp.statusText)
      })
    }
  }
}
</script>
<style scoped>
</style>
